win32: Stop using gdk_drag_get_suggested_action
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 Jul 2018 06:06:53 +0000 (08:06 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 12 Jul 2018 11:02:42 +0000 (13:02 +0200)
The suggested action is not set or used in the win32
information, so don't put it in logs either.

gdk/win32/gdkdrag-win32.c

index 34cf71ccf7f191f1b1779487bd725babb15eddc4..09d93a6197305d8002319bcb15c277e39943ee93 100644 (file)
@@ -1923,12 +1923,11 @@ gdk_win32_local_drag_motion (GdkDrag         *drag,
   actions = gdk_drag_get_actions (drag);
 
   GDK_NOTE (DND, g_print ("gdk_win32_local_drag_motion: @ %+d:%+d possible=%s\n"
-                          " dest=%p (current %p) drop=%p drag=%p:{actions=%s,suggested=%s,action=%s}\n",
+                          " dest=%p (current %p) drop=%p drag=%p:{actions=%s,action=%s}\n",
                           x_root, y_root,
                           _gdk_win32_drag_action_to_string (possible_actions),
                           dest_window, drag_win32->dest_window, drop, drag,
                           _gdk_win32_drag_action_to_string (actions),
-                          _gdk_win32_drag_action_to_string (gdk_drag_get_suggested_action (drag)),
                           _gdk_win32_drag_action_to_string (drag->action)));
 
   if (drag_win32->dest_window != dest_window)
@@ -1970,11 +1969,10 @@ gdk_win32_local_drag_motion (GdkDrag         *drag,
     }
 
   GDK_NOTE (DND, g_print (" returning %s\n"
-                          " drag=%p:{actions=%s,suggested=%s,action=%s}\n",
+                          " drag=%p:{actions=%s,action=%s}\n",
                           (drop != NULL && drag_win32->drag_status == GDK_DRAG_STATUS_DRAG) ? "TRUE" : "FALSE",
                           drag,
                           _gdk_win32_drag_action_to_string (gdk_drag_get_actions (drag)),
-                          _gdk_win32_drag_action_to_string (gdk_drag_get_suggested_action (drag)),
                           _gdk_win32_drag_action_to_string (drag->action)));
   return (drop != NULL && drag_win32->drag_status == GDK_DRAG_STATUS_DRAG);
 }